<<<<<<< HEAD
<div class="content-wrapper">
    <section class="content-header">
        <h1>订单列表</h1>
        <ol class="breadcrumb">
            <li>
                <a href="/">
                    <i class="fa fa-dashboard"></i> 首页</a>
            </li>
            <li class="active">订单管理</li>
            <li class="active">订单列表</li>
        </ol>
    </section>
    <section class="content">
        <div class="box">
            <div class="box-header with-border">
                <form class="form-inline" action="/order/orderList" method="get">
                    <div class="form-group">
                        <label for="company_name">客户 </label>
                        <input type="text" class="form-control" id="company_name" name="company_name" placeholder="客户名称" value="{$company_name}">
                    </div>
                    <div class="form-group">
                        <label for="department">部门 </label>
                        <input type="text" class="form-control" id="department" name="department" placeholder="部门" value="{$department}">
                    </div>
                    <div class="form-group">
                        <label for="admin_name">人员 </label>
                        <input type="text" class="form-control" id="admin_name" name="admin_name" placeholder="部门人员" value="{$admin_name}">
                    </div>
                    <div class="form-group">
                        <label class="label-control" for="status">状态 </label>
                        <select id="status" name="status" class="form-control">
                            <option value="0">请选择</option>
                            <foreach name="orderStatusList" item="status_val" key="key_val">
                                <option value="{$key_val}" <if condition="$key_val eq $status ">selected</if>>{$status_val}</option>
                            </foreach>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>日期</label>
                        <div class="input-group">
                            <div class="input-group-addon">
                                <i class="fa fa-calendar"></i>
                            </div>
                            <input type="text" class="form-control pull-right" name="search_time" id="reservation" value="{$search_time}">
                        </div>
                        <!-- /.input group -->
                    </div>
                    <button type="submit" class="btn btn-info" id="save-btn">查询</button>
                </form>
            </div>
            <div class="box-body table-responsive">
                <div class="box">
                    <div class="box-header">
                        <!-- Button trigger modal -->
                        <button type="button" class="btn btn-primary btn-md pull-right" data-toggle="modal" data-target="#myModal">导出</button>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body no-padding">
                        <table class="table table-condensed">
                            <tbody>
                                <tr>
                                    <td>销售总额：{$statOrder.total_amount}</td>
                                    <td>成本总额：{$statOrder.total_base_price}</td>
                                    <td>利润金额：{$statOrder.total_profit_price}</td>
                                    <td>其他金额：{$statOrder.total_other_price}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                </div>
                <table class="table table-bordered">
                    <tbody>
                        <tr>
                            <th>ID</th>
                            <th>订单ID</th>
                            <th>公司名称</th>
                            <th>分类</th>
                            <th>推广产品</th>
                            <th>联系人</th>
                            <th>销售金额</th>
                            <th>成本</th>
                            <th>毛利</th>
                            <th>其他费用</th>
                            <th>状态</th>
                            <th>下单时间</th>
                            <th>部门</th>
                            <th>部门人员</th>
                            <th>操作</th>
                        </tr>
                        <if condition="count($orderList) eq 0">
                            <tr>
                                <td class="text-center" colspan="10">暂无数据...</td>
                            </tr>
                        </if>
                        <foreach name="orderList" item="order">
                            <tr>
                                <td>{$order.order_id}</td>
                                <td>{$order.order_code}</td>
                                <td>{$order.company_name}</td>
                                <td>{$order.category_name}</td>
                                <td>{$order.product_name}</td>
                                <td>{$order.name}</td>
                                <td>{$order.amount}</td>
                                <td>{$order.base_price}</td>
                                <td>{$order.profit_price}</td>
                                <td>{$order.other_price}</td>
                                <td>
                                    <p>{$order.status_desc}</p>
                                    <if condition="$order.status eq 35 ">
                                        <if condition="$order.dp_manager_review eq 1 ">
                                            <span class="label label-success">已通过</span>
                                            <else />
                                            <span class="label label-danger">已拒绝</span>
                                        </if>
                                        <elseif condition="$order.status eq 40 " />
                                        <if condition="$order.director_review eq 1 ">
                                            <span class="label label-success">已通过</span>
                                            <else />
                                            <span class="label label-danger">已拒绝</span>
                                        </if>
                                        <elseif condition="$order.status eq 45 " />
                                        <if condition="$order.g_manager_review eq 1 ">
                                            <span class="label label-success">已通过</span>
                                            <else />
                                            <span class="label label-danger">已拒绝</span>
                                        </if>
                                    </if>
                                </td>
                                <td>{$order.create_time}</td>
                                <td>{$order.department_name}</td>
                                <td>{$order.admin_name}</td>
                                <td>
                                    <button class="btn bg-maroon btn-xs " type="button" data-id="{$order.id}" onclick="window.location.href='/admin/order/orderDetail?id={$order.order_id}'">详情</button>&nbsp;
                                </td>
                            </tr>
                        </foreach>
                    </tbody>
                </table>
            </div>
            <div class="box-footer clearfix">{$page_html}</div>
        </div>
    </section>
</div>
=======
<div class="content-wrapper">
    <section class="content-header">
        <h1>订单列表</h1>
        <ol class="breadcrumb">
            <li>
                <a href="/">
                    <i class="fa fa-dashboard"></i> 首页</a>
            </li>
            <li class="active">订单管理</li>
            <li class="active">订单列表</li>
        </ol>
    </section>
    <section class="content">
        <div class="box">
            <div class="box-header with-border">
                <form class="form-inline" action="/order/orderList" method="get">
                    <div class="form-group">
                        <label for="company_name">客户 </label>
                        <input type="text" class="form-control" id="company_name" name="company_name" placeholder="客户名称" value="{$company_name}">
                    </div>
                    <div class="form-group">
                        <label for="department">部门 </label>
                        <input type="text" class="form-control" id="department" name="department" placeholder="部门" value="{$department}">
                    </div>
                    <div class="form-group">
                        <label for="admin_name">人员 </label>
                        <input type="text" class="form-control" id="admin_name" name="admin_name" placeholder="部门人员" value="{$admin_name}">
                    </div>
                    <div class="form-group">
                        <label class="label-control" for="status">状态 </label>
                        <select id="status" name="status" class="form-control">
                            <option value="0">请选择</option>
                            <foreach name="orderStatusList" item="status_val" key="key_val">
                                <option value="{$key_val}" <if condition="$key_val eq $status ">selected</if>>{$status_val}</option>
                            </foreach>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>日期</label>
                        <div class="input-group">
                            <div class="input-group-addon">
                                <i class="fa fa-calendar"></i>
                            </div>
                            <input type="text" class="form-control pull-right" name="search_time" id="reservation" value="{$search_time}">
                        </div>
                        <!-- /.input group -->
                    </div>
                    <button type="submit" class="btn btn-info" id="save-btn">查询</button>
                </form>
            </div>
            <div class="box-body table-responsive">
                <div class="box">
                    <div class="box-header">
                        <!-- Button trigger modal -->
                        <button type="button" class="btn btn-primary btn-md pull-right" data-toggle="modal" data-target="#myModal">导出</button>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body no-padding">
                        <table class="table table-condensed">
                            <tbody>
                                <tr>
                                    <td>销售总额：{$statOrder.total_amount}</td>
                                    <td>成本总额：{$statOrder.total_base_price}</td>
                                    <td>利润金额：{$statOrder.total_profit_price}</td>
                                    <td>其他金额：{$statOrder.total_other_price}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                </div>
                <table class="table table-bordered">
                    <tbody>
                        <tr>
                            <th>ID</th>
                            <th>订单ID</th>
                            <th>公司名称</th>
                            <th>分类</th>
                            <th>推广产品</th>
                            <th>联系人</th>
                            <th>销售金额</th>
                            <th>成本</th>
                            <th>毛利</th>
                            <th>其他费用</th>
                            <th>状态</th>
                            <th>下单时间</th>
                            <th>部门</th>
                            <th>部门人员</th>
                            <th>操作</th>
                        </tr>
                        <if condition="count($orderList) eq 0">
                            <tr>
                                <td class="text-center" colspan="10">暂无数据...</td>
                            </tr>
                        </if>
                        <foreach name="orderList" item="order">
                            <tr>
                                <td>{$order.order_id}</td>
                                <td>{$order.order_code}</td>
                                <td>{$order.company_name}</td>
                                <td>{$order.category_name}</td>
                                <td>{$order.product_name}</td>
                                <td>{$order.name}</td>
                                <td>{$order.amount}</td>
                                <td>{$order.base_price}</td>
                                <td>{$order.profit_price}</td>
                                <td>{$order.other_price}</td>
                                <td>
                                    <p>{$order.status_desc}</p>
                                    <if condition="$order.status eq 35 ">
                                        <if condition="$order.dp_manager_review eq 1 ">
                                            <span class="label label-success">已通过</span>
                                            <else />
                                            <span class="label label-danger">已拒绝</span>
                                        </if>
                                        <elseif condition="$order.status eq 40 " />
                                        <if condition="$order.director_review eq 1 ">
                                            <span class="label label-success">已通过</span>
                                            <else />
                                            <span class="label label-danger">已拒绝</span>
                                        </if>
                                        <elseif condition="$order.status eq 45 " />
                                        <if condition="$order.g_manager_review eq 1 ">
                                            <span class="label label-success">已通过</span>
                                            <else />
                                            <span class="label label-danger">已拒绝</span>
                                        </if>
                                    </if>
                                </td>
                                <td>{$order.create_time}</td>
                                <td>{$order.department_name}</td>
                                <td>{$order.admin_name}</td>
                                <td>
                                    <button class="btn bg-maroon btn-xs " type="button" data-id="{$order.id}" onclick="window.location.href='/admin/order/orderDetail?id={$order.order_id}'">详情</button>&nbsp;
                                </td>
                            </tr>
                        </foreach>
                    </tbody>
                </table>
            </div>
            <div class="box-footer clearfix">{$page_html}</div>
        </div>
    </section>
</div>
>>>>>>> 6c8c1c21a2da02a4571638bafd3dd69f7331742d
